<script setup lang="ts">
import {useRoute} from "vue-router";
import Detail from '@/pages/user/order/detail/index.vue'
import AllOrder from '@/pages/user/order/allOrder/index.vue'
let $route = useRoute();
</script>

<template>
<div>
  <div v-if="$route.query.orderId">
    <Detail/>
  </div>
  <div v-else>
    <AllOrder/>
  </div>
</div>
</template>

<style scoped lang="scss">

</style>
